Optimal. Leaf size=26 \[ \text {Int}\left (\frac {\cos ^2(c+d x)}{\left (a+b \sin ^3(c+d x)\right )^2},x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps
used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {}
\begin {gather*} \int \frac {\cos ^2(c+d x)}{\left (a+b \sin ^3(c+d x)\right )^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {\cos ^2(c+d x)}{\left (a+b \sin ^3(c+d x)\right )^2} \, dx &=\int \frac {\cos ^2(c+d x)}{\left (a+b \sin ^3(c+d x)\right )^2} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] Result contains complex when optimal does not.
time = 0.18, size = 273, normalized size = 10.50 \begin {gather*} \frac {-i \text {RootSum}\left [-i b+3 i b \text {$\#$1}^2+8 a \text {$\#$1}^3-3 i b \text {$\#$1}^4+i b \text {$\#$1}^6\&,\frac {2 \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right )-i \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right )+12 \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}^2-6 i \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}^2+2 \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}^4-i \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}^4}{b \text {$\#$1}-4 i a \text {$\#$1}^2-2 b \text {$\#$1}^3+b \text {$\#$1}^5}\&\right ]+\frac {12 \sin (2 (c+d x))}{4 a+3 b \sin (c+d x)-b \sin (3 (c+d x))}}{18 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] Leaf count of result is larger than twice the leaf count of optimal. \(174\) vs.
\(2(25)=50\).
time = 2.01, size = 175, normalized size = 6.73
method | result | size |
derivativedivides | \(\frac {\frac {-\frac {2 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 a}+\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{3 a}}{a \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+3 a \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+8 b \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+3 a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a}+\frac {2 \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{6}+3 a \,\textit {\_Z}^{4}+8 b \,\textit {\_Z}^{3}+3 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\textit {\_R}^{4}+1\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{5} a +2 \textit {\_R}^{3} a +4 \textit {\_R}^{2} b +\textit {\_R} a}\right )}{9 a}}{d}\) | \(175\) |
default | \(\frac {\frac {-\frac {2 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 a}+\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{3 a}}{a \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+3 a \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+8 b \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+3 a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a}+\frac {2 \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{6}+3 a \,\textit {\_Z}^{4}+8 b \,\textit {\_Z}^{3}+3 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\textit {\_R}^{4}+1\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{5} a +2 \textit {\_R}^{3} a +4 \textit {\_R}^{2} b +\textit {\_R} a}\right )}{9 a}}{d}\) | \(175\) |
risch | \(-\frac {2 \left ({\mathrm e}^{5 i \left (d x +c \right )}-{\mathrm e}^{i \left (d x +c \right )}\right )}{3 a d \left (b \,{\mathrm e}^{6 i \left (d x +c \right )}-3 b \,{\mathrm e}^{4 i \left (d x +c \right )}+3 b \,{\mathrm e}^{2 i \left (d x +c \right )}-8 i a \,{\mathrm e}^{3 i \left (d x +c \right )}-b \right )}+\left (\munderset {\textit {\_R} =\RootOf \left (\left (531441 a^{12} b^{4} d^{6}-531441 a^{10} b^{6} d^{6}\right ) \textit {\_Z}^{6}+19683 a^{8} b^{4} d^{4} \textit {\_Z}^{4}+729 a^{6} b^{2} d^{2} \textit {\_Z}^{2}+a^{4}-16 a^{2} b^{2}+64 b^{4}\right )}{\sum }\textit {\_R} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\left (-\frac {59049 d^{5} b^{3} a^{15}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}-\frac {59049 d^{5} b^{5} a^{13}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}+\frac {590490 d^{5} b^{7} a^{11}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}-\frac {472392 d^{5} b^{9} a^{9}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}\right ) \textit {\_R}^{5}+\left (\frac {19683 i d^{4} b^{3} a^{13}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}-\frac {203391 i d^{4} b^{5} a^{11}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}+\frac {393660 i d^{4} b^{7} a^{9}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}-\frac {209952 i d^{4} b^{9} a^{7}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}\right ) \textit {\_R}^{4}+\left (-\frac {6561 d^{3} b^{3} a^{11}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}+\frac {40824 d^{3} b^{5} a^{9}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}-\frac {69984 d^{3} b^{7} a^{7}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}+\frac {46656 d^{3} b^{9} a^{5}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}\right ) \textit {\_R}^{3}+\left (-\frac {81 i d^{2} b \,a^{11}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}+\frac {1134 i d^{2} b^{3} a^{9}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}-\frac {4536 i d^{2} b^{5} a^{7}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}+\frac {5184 i d^{2} b^{7} a^{5}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}\right ) \textit {\_R}^{2}+\left (-\frac {63 d b \,a^{9}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}-\frac {414 d \,b^{3} a^{7}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}+\frac {1656 d \,b^{5} a^{5}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}-\frac {1152 d \,b^{7} a^{3}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}\right ) \textit {\_R} +\frac {17 i a^{7} b}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}-\frac {164 i b^{3} a^{5}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}+\frac {224 i b^{5} a^{3}}{a^{8}+20 a^{6} b^{2}-304 a^{4} b^{4}+704 a^{2} b^{6}-512 b^{8}}\right )\right )\) | \(1243\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] Result contains complex when optimal does not.
time = 3.28, size = 36403, normalized size = 1400.12 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cos ^{2}{\left (c + d x \right )}}{\left (a + b \sin ^{3}{\left (c + d x \right )}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [A]
time = 15.75, size = 1648, normalized size = 63.38 \begin {gather*} \frac {\sum _{k=1}^6\ln \left (-\frac {-\frac {16384\,a^2}{243}+\frac {131072\,b^2}{243}+\frac {\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )\,a^4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,8192}{27}+\frac {\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )\,b^4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,1048576}{27}+\frac {{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^2\,a^2\,b^4\,262144}{3}-\frac {{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^2\,a^4\,b^2\,131072}{3}-{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^3\,a^5\,b^3\,98304+{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^4\,a^6\,b^4\,442368+{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^4\,a^8\,b^2\,221184+{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^5\,a^7\,b^5\,7962624-{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^5\,a^9\,b^3\,5971968+\frac {\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )\,a\,b^3\,131072}{27}-\frac {\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )\,a^3\,b\,65536}{27}-\frac {\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )\,a^2\,b^2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,131072}{9}-\frac {{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^2\,a^5\,b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,32768}{3}-\frac {{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^2\,a^3\,b^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,131072}{3}+{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^3\,a^6\,b^2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,245760+{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^4\,a^5\,b^5\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,3538944-{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^4\,a^7\,b^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,2654208+{\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}^5\,a^8\,b^4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,1990656}{a^3}\right )\,\mathrm {root}\left (531441\,a^{12}\,b^4\,d^6-531441\,a^{10}\,b^6\,d^6+19683\,a^8\,b^4\,d^4+729\,a^6\,b^2\,d^2-16\,a^2\,b^2+a^4+64\,b^4,d,k\right )}{d}-\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{3\,d\,\left (a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+a^2+8\,b\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\right )}+\frac {2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{3\,d\,\left (a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+a^2+8\,b\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________